package com.bw.module_video_detail.mvi.model.api

import com.bw.lib_net.BaseResponse
import com.bw.module_video_detail.mvi.model.entity.DanMuEntity
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.PUT
import retrofit2.http.Query

/**
 * @author ytx
 * @date 2025-10-21 10:09
 * @description
 */
interface VideoDetailApi {
    /**
     * 获得弹幕信息
     */
    @GET("/bulletscreen/getBulletScreenInfo")
    suspend fun getBulletScreenInfo(@Query("datatype") datatype:Int,@Query("itemid") itemId:String):BaseResponse<List<DanMuEntity>>
    /**
     * 发送弹幕
     */
    @POST("/bulletscreen/publishBulletScreen")
    suspend fun publishBulletScreen(@Body body:RequestBody):BaseResponse<DanMuEntity>

    @PUT("/account/modifyCoinAmount")
    suspend fun modifyCoinAmount(@Query("id") id:String,@Query("nm") nm:Int):BaseResponse<Boolean>
}